function showDialog() {

    var options = {
        url: serverRelativeUrl + 'SiteAssets/CKS/' + errorPageName + '?IsDlg=1&uid=' + correlationId,
        title: errorDialogTitle,
        allowMaximize: false,
        showClose: true,
        width: dialogWidth,
        height: dialogHeight,
        dialogReturnValueCallback: dialogCallback
    };

    SP.UI.ModalDialog.showModalDialog(options);
}

function dialogCallback() {
    document.location.href = "#";
}

function emitStatus() {
    statusId = SP.UI.Status.addStatus('', friendlyErrorText + "&nbsp;&nbsp;&nbsp;<a href='javascript:showDialog()'>[Help]</a>&nbsp;&nbsp;&nbsp;<a href='javascript:SP.UI.Status.removeStatus(statusId)'>[Close]</a>");
    SP.UI.Status.setStatusPriColor(statusId, statusBarColor);
}